//
//  programmeviewcontroller.h
//  Prospectus
//
//  Created by Ken Power on 28/01/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@class Programme;

@interface ProgrammeViewController : UIViewController <UIWebViewDelegate> {

	IBOutlet UILabel *maintitle;
	IBOutlet UILabel *subtitle;
	IBOutlet UILabel *pointsCutOff;
	IBOutlet UILabel *numYears;
	IBOutlet UILabel *numPlaces;
	IBOutlet UIButton *aboutThisProgramme;
	IBOutlet UIButton *careerOptions;
	IBOutlet UIButton *followOnStudy;
	IBOutlet UIButton *specialFeatures;
	IBOutlet UIButton *exemptions;
	IBOutlet UIButton *contact;
	IBOutlet UIButton *subjectsStudied;
	IBOutlet UIButton *entryRequirements;
	IBOutlet UIButton *grants;
	IBOutlet UITextField *txtPointsCutOff;
	IBOutlet UITextField *txtNumPlaces;
	IBOutlet UITextField *txtDuration;
	
	UIButton *btnCurrentTab;
	
	
	
	IBOutlet UIWebView *details;
	
	
	Programme *programme;
	
}

@property (nonatomic, retain) Programme *programme;
@property (nonatomic, retain) IBOutlet UILabel *maintitle;
@property (nonatomic, retain) IBOutlet UILabel *subtitle;
@property (nonatomic, retain) IBOutlet UILabel *pointsCutOff;
@property (nonatomic, retain) IBOutlet UILabel *numYears;
@property (nonatomic, retain) IBOutlet UILabel *numPlaces;
@property (nonatomic, retain) IBOutlet UIButton *aboutThisProgramme;
@property (nonatomic, retain) IBOutlet UIButton *careerOptions;
@property (nonatomic, retain) IBOutlet UIButton *followOnStudy;
@property (nonatomic, retain) IBOutlet UIButton *specialFeatures;
@property (nonatomic, retain) IBOutlet UIButton *exemptions;
@property (nonatomic, retain) IBOutlet UIButton *contact;
@property (nonatomic, retain) IBOutlet UIButton *subjectsStudied;
@property (nonatomic, retain) IBOutlet UIButton *entryRequirements;
@property (nonatomic, retain) IBOutlet UIButton *grants;
@property (nonatomic, retain) IBOutlet UIWebView *details;
@property (nonatomic, retain) IBOutlet UITextField *txtPointsCutOff;
@property (nonatomic, retain) IBOutlet UITextField *txtNumPlaces;
@property (nonatomic, retain) IBOutlet UITextField *txtDuration;

-(IBAction)buttonPress:sender;

-(NSString*)GetSubjectHTML;
-(NSString*)GetOverViewHTML;
-(NSString*)GetFeaturesHTML;
-(NSString*)GetCareerHTML;
-(NSString*)GetEntryHTML;

-(NSString*)GetHTMLListOfSubjects:(NSArray*)subjects;
-(NSString*)GetHTMLSubjectsForYear:(NSString*)subjectList;
-(NSString*)MakeHTMLPage:(NSString*)body bodyclass:(NSString*)classname;

-(void)webViewDidFinishLoad:(UIWebView *)webView;

-(void)	dealloc;



@end
